gcc -o sendpcm_x86 sendpcm.c -g -static

export PATH=/opt/FriendlyARM/toolschain/4.5.1/bin/:$PATH
arm-none-linux-gnueabi-gcc -o sendpcm_arm1176 main.c -lpthread -static -g

export PATH=/opt/FriendlyARM/toolschain/4.4.3/bin/:$PATH
arm-none-linux-gnueabi-gcc -o sendpcm_arm920t main.c -lpthread -static -g

cp sendpcm_* /tftpboot/
